const myEnv = {
  inH5: false,
  inWx: false,
  inMp: false,
  inMpWx: false,
  inDev: false,
  inIos: uni.$u.os() === "ios",
  inAndroid: uni.$u.os() === "android",
};

// #ifdef H5
myEnv.inH5 = true;
myEnv.inWx = /micromessenger/i.test(navigator.userAgent);
myEnv.inDev = /localhost/.test(location.host);
// #endif

// #ifdef APP
myEnv.inApp = true;
// #endif

// #ifdef MP
myEnv.inMp = true;
// #endif

// #ifdef MP-WEIXIN
myEnv.inMpWx = true;
// #endif

export default myEnv;
